public class Dog extends Animal {

    public void bark(){
        System.out.println("正在汪汪叫");

    }

    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.age=7;
        dog.name="阿财";
        System.out.println(dog.name);
        System.out.println(dog.age);
        dog.eat();
    }
}
